#pragma once
#include "stdafx.h"
#include "PbHead.h"
#include "curl/curl.h"
#include <string>
#include "Interface.h"


//int ver = 0;
//string server_url = "";
//string checkcard = "";
//string book = "";

std::string mm_post(void*handle, std::string host, std::string url_post, std::string postParams);
std::string proxy_post(std::string host, std::string url_post, std::string  proxy_ip ,std::string postParams);
std::string fuck(string check_url, string checkcard);
std::string fucklogin(string check_url, string checkcard);

int fuckver(string check_url, string checkcard);
size_t req_reply(void *ptr, size_t size, size_t nmemb, void *stream);
int check_proxy(const string &proxy_ip, string &response);

int curl_post_Report(const string &url, const string &postParams, string &response, string proxy);
int curl_post_check(const string &url, const string &postParams, string &response);
int curl_post_group(const string &url, const string &postParams, string &response, string proxy);
int curl_post_req(const string &host, const string &url, const string &postParams, string &response);
int curl_post_req(const string &host, const string &url, const string &proxy_ip, const string &postParams, string &response);
int curl_post_json(const string &host, const string &url, const string &postParams, string &response);

std::string MakeRePortPack(std::string FromUser,std::string ToUser);


//int curl_post_check(const string &url, const string &postParams, string &response);

//